﻿using UnityEngine;

public class FxExportItem : MonoBehaviour
{
    private bool m_needRestore;

    public void HideCover()
    {
        m_needRestore = gameObject.activeInHierarchy;
        SetActive(false);
    }

    public void Restore()
    {
		if (m_needRestore)
        {
            SetActive(true);
        }
    }

    public void SetActive(bool isActive)
    {
        gameObject.SetActive(isActive);
    }

	public void SetNeedStore(){
		m_needRestore = gameObject.activeInHierarchy;
	}
}
